import request from '@/utils/request'
//1.查询商品的规格分页数据
export const GetPage = (pageNum, pageSize) => {
  return request({
    url: `/admin/product/spec/page/${pageNum}/${pageSize}`,
    method: 'GET',
  })
}
//删除
export const DeleteById = id => {
  return request({
    url: `/admin/product/spec/${id}`,
    method: 'delete',
  })
}
//新增商品规格
export const SaveProductSpec = data => {
  return request({
    url: `/admin/product/spec`,
    method: 'post',
    data,
  })
}

//更新商品规格
export const UpdateProductSpec = data => {
  return request({
    url: `/admin/product/spec`,
    method: 'put',
    data,
  })
}
//FindAllProductSpec(假)
export const FindAllProductSpec = () => {
  return request({
    url: `/admin/product/spec/findAll`,
    method: 'get',
  })
}
